import request from "@/utils/request.js";

const api_prefix = "/collect/store";

export function saveCollectStore(data) {
  return request({
    //模板字符串拼接参数
    url: `${api_prefix}/save`,
    method: "POST",
    data: data,
  });
}

export function getCollectStoresList(pageNO, pageSize, userId) {
  return request({
    //模板字符串拼接参数
    url: `${api_prefix}/list/${pageNO}/${pageSize}/${userId}`,
    method: "GET",
  });
}

export function cancelCollectStores(id) {
  return request({
    //模板字符串拼接参数
    url: `${api_prefix}/cancel/goods/${id}`,
    method: "DELETE",
  });
}

export function cancelPayedStores(pageNO, pageSize, userId) {
  return request({
    //模板字符串拼接参数
    url: `${api_prefix}/payed/list/${pageNO}/${pageSize}/${userId}`,
    method: "GET",
  });
}
